package model.dynamic;

import model.AbstractDepartment;

//B级单位
public class DyBDepartment extends TransDyDepartment
{
	 String aName;

	 String bName;

	public DyBDepartment(DyCDepartment dyCDepartment)
	{
		this.aName = dyCDepartment.aName;
		this.bName = dyCDepartment.bName;
	}

	@Override
	public boolean hasSubDepartment() {return true;}


	@Override
	public boolean isSubDepartmentInThis(AbstractDepartment department)
	{
		DyCDepartment dyCDepartment =(DyCDepartment)department;
		return aName.equals(dyCDepartment.aName) && bName.equals(dyCDepartment.bName);
	}

	@Override
	public String departmentName()
	{
		return aName + bName;
	}
}
